package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/es")
public class EsInitController {

    @Autowired
    private ApArticleService articleService;

    @RequestMapping("/init")
    public ResponseResult init() {
        return articleService.esinit();
    }
}